package com.hspedu.Homework;
/*
 *@auther will
 *@version 1.0
 */

import javax.swing.plaf.synth.SynthOptionPaneUI;

public class Homework03 {
    public static void main(String[] +++++++args) {
        String name = "Han Shun Ping";
        String name1=nameExchange(name);
        System.out.println(name1);
    }
    public static String  nameExchange(String str){
        String[] s = str.split(" ");
        String first = s[2];
        String second = ","+s[0];
        String third = " ."+s[1].toCharArray()[0];
        String name1 = first+second+third;

        return name1;
    }
}
